/*
 * @Author: sunzhijun 
 * @Date: 2019-03-26 21:41:50 
 * @Last Modified by: sunzhijun
 * @Last Modified time: 2019-07-04 10:28:46
 */
import { high } from 'nc-lightapp-front';

const { Refer } = high;

export default function (props = {}) {
    var conf = { 
        multiLang: { domainName: 'hrcm', currentLocale: 'zh-CN', moduleId: 'refer6011' },
		refType: 'gridTree',
		refName: 'cm6011-000002',
		placeholder: 'cm6011-000002',
        refCode: 'hrcm.agreement.BusiOrgTreeRef',
        queryTreeUrl: '/nccloud/hrcm/agreement/BusiOrgTreeRef.do',
        queryGridUrl: '/nccloud/hrcm/agreement/PsnJobGridRef.do',
        rootNode: { refname: 'cm6011-0000013', refpk: 'root', isleaf: false },/* 国际化处理： 组织部门*/
        columnConfig: 
        [{
            name: [ 
                'cm6011-000008', 
                'cm6011-000004',
                'cm6011-000009',
                'cm6011-0000010',
                'cm6011-0000011',
                'cm6011-0000012', 
                'cm6011-000005'
            ],
            code: [ 
                'bd_psndoc.code',   //员工编码
                'refname',          //姓名
                'clerkcode',        //员工号
                'org_orgs.name',    //组织
                'org_dept.name',    //部门
                'om_post.postname', //岗位
                'ismainjob'         //主职
            ]
        }],/* 国际化处理： 编码,名称*/
        isMultiSelectedEnabled: false,
    };

    return <Refer {...Object.assign(conf, props)} />
}